import requestInst from '../utils/request'
import type { GetJobListRes, GetJobParams } from '../types/jobs'

/**
 * 获取职位列表数据
 * @param params 请求参数
 * @param headers 头部参数，含cookie
 * @returns 
 */
export function zpGetJobList(params: GetJobParams, headers?: object) {
  return requestInst.request<any, GetJobListRes>({
    url: '/wapi/zpgeek/search/joblist.json',
    method: 'get',
    params,
    headers: { ...headers }
  })
}